<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <button onclick="test()">点我试试</button>
    <button onclick="chou()">你瞅啥</button>

    <script>
        function test(){
            document.getElementById("hello").innerHTML="走,喝点去";
        }

        function chou(){
            document.getElementById("hello").style.color="red";
            document.getElementById("hello").style.fontFamily="隶书";
        }
    </script>
    <h2 id="hello">你好!</h2>
</body>
</html>